//直播管理路由
import Layout from "@/views/layout/index";
const liveManageRouter = {
  path: "/liveManage",
  name: "liveManage",
  component: Layout,
  meta: {
    title: "直播管理",
    icon: "iconfont icon-ziyuan1"
  },
  redirect: "/liveManage/liveDashboard",
  children: [
    {
      path: "liveDashboard",
      name: "liveDashboard",
      component: () => import("@/views/liveManage/liveDashboard/liveDashboard"),
      meta: {
        title: "直播管理",
        api: ["dashboard"],
        authority: ["list"]
      },
      checkedList: [],
      rights: [
        /*         {
          value: "count",
          label: "统计"
        }, */
        {
          value: "list",
          label: "列表"
        }
      ]
    },
    {
      path: "classroom",
      name: "classroom",
      component: () => import("@/views/liveManage/room/classroom"),
      meta: {
        title: "教室管理",
        api: ["room"],
        authority: ["list", "create", "edit", "details"]
      },
      checkedList: [],
      rights: [
        {
          value: "list",
          label: "列表"
        },
        {
          value: "own",
          label: "只看自己"
        },
        {
          value: "create",
          label: "添加"
        },
        {
          value: "details",
          label: "详情"
        },
        {
          value: "edit",
          label: "编辑"
        },
        {
          value: "delete",
          label: "删除"
        }
      ]
    },
    {
      path: "addRoom",
      name: "addRoom",
      hidden: true,
      component: () => import("@/views/liveManage/room/addRoom"),
      meta: {
        title: "新建教室",
        api: ["room"],
        authority: ["create", "edit", "details"]
      },
      checkedList: []
    },
    {
      path: "roomPrepare",
      name: "roomPrepare",
      hidden: true,
      component: () => import("@/views/liveManage/room/roomPrepare"),
      meta: {
        title: "课前准备",
        api: ["room"],
        authority: ["create", "edit", "details"]
      },
      checkedList: []
    },
    {
      path: "roomMembers",
      name: "roomMembers",
      hidden: true,
      component: () => import("@/views/liveManage/room/roomMembers"),
      meta: {
        title: "教室成员",
        api: ["room"],
        authority: ["create", "edit", "details"]
      },
      checkedList: []
    },
    {
      path: "recordsManage",
      name: "recordsManage",
      hidden: true,
      component: () => import("@/views/liveManage/room/recordsManage"),
      meta: {
        title: "录制件监管",
        api: ["room"],
        authority: ["create", "edit", "details"]
      },
      checkedList: []
    },
    {
      path: "onlineList",
      name: "onlineList",
      hidden: true,
      component: () => import("@/views/liveManage/room/onlineList"),
      meta: {
        title: "在线情况",
        api: ["room"],
        authority: ["create", "edit", "details"]
      },
      checkedList: []
    },
    {
      path: "chatlog",
      name: "chatlog",
      hidden: true,
      component: () => import("@/views/liveManage/room/chatlog"),
      meta: {
        title: "聊天记录",
        api: ["room"],
        authority: ["create", "edit", "details"]
      },
      checkedList: []
    },
    {
      path: "courseware",
      name: "courseware",
      component: () => import("@/views/liveManage/courseware"),
      meta: {
        title: "课件管理",
        api: ["room"],
        authority: ["create", "edit", "details"]
      },
      checkedList: []
    },
    {
      path: "record",
      name: "record",
      component: () => import("@/views/liveManage/record"),
      meta: {
        title: "录制件管理",
        api: ["room"],
        authority: ["create", "edit", "details"]
      },
      checkedList: []
    },
    {
      path: "statistics",
      name: "statistics",
      component: () => import("@/views/liveManage/statistics"),
      meta: {
        title: "统计",
        api: ["statistics"],
        authority: ["list"]
      },
      checkedList: []
    },
    {
      path: "finance",
      name: "finance",
      component: () => import("@/views/liveManage/finance/finance"),
      meta: {
        title: "财务",
        api: ["finance"],
        authority: ["list"]
      },
      checkedList: []
    }
  ]
};

export default liveManageRouter;
